﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Class01
{
    class Class02
    {
        static void Main(string[] args)
        {
            ////用户类：
            //    //1、无参：            
            emp empyee1 = new emp();
            empyee1.Id = 2;
            empyee1.Name = "李四";
            empyee1.Dep = "养猪户";
            empyee1.dy();
            //有参：
            emp empyee = new emp(1, "张三", "软件");
            empyee.dy();

            ////圆形面积：
            rectangle c = new rectangle();
            c.r = 2;
            c.Sculuer();

            ////长方形面积：
            rectangle rec = new rectangle(3, 4);
            rec.Srectangle();

            //有参求两个整数相加和:
            SumUtils add = new SumUtils(1,1);
            add.sum();

            //有参求两个小数相加和:
            SumUtils add1 = new SumUtils(0.5, 0.1);
            add1.sum1();

            //有参数的字符串相加：
            SumUtils add2 = new SumUtils("不要报", "闽西");
            add2.sum2();


            //有参数的整数累加：
            SumUtils add3 = new SumUtils(6);
            add3.accumulation();
        }
    }
}
    



   

